package com.leyou.trade.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.trade.dto.OrderFormDTO;
import com.leyou.trade.entity.Order;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @author BaiZY on 2020/9/7.
 * @version 1.0
 */
public interface OrderService extends IService<Order> {

    Long createOrder(OrderFormDTO orderDTO, HttpServletRequest request);

    String getPayUrl(Long orderId);

    void handleWxNotify(Map<String, String> data);

    Integer queryOrderStatus(Long orderId);

    Integer activeQueryOrderStatus(Long orderId);

    void evictOrderIfNecessary(Long orderId);
}
